//徽章
class BadgeBean {
  int id=0 ;
  String img = ""; //宝石图片
  int time = 0; //该种类宝石数量

  BadgeBean({
    this.time = 0,
    this.img = "",
    this.id = 0,
  });
  BadgeBean.fromJson(Map<String, dynamic> json) {
    img = json['img'];
    time = json['time'];
     id=json['id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['img'] = this.img;
    data['time'] = this.time;
   //id不能写在这里，否则插入错误
    return data;
  }
}

// json装实体类网址  https://jsontodart.com/

// {
//   "id":1,
//   "img":"",
//   "defaultImg":"",
//   "normal":0,
//   "eliminationEffect":0
// }
